﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TGBTech.Core.Models.Services;

namespace TGBTech.WebAdmin.Controllers
{
    public class CDPSController : Controller
    {
        //
        // GET: /CDPS/
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Create()
        {
            return View();
        }


        public ActionResult CDPSView(string strngaybatdau, string strngayketthuc)
        {
            DateTime ngaybatdau = DateTime.Parse(strngaybatdau);
            DateTime ngayketthuc = DateTime.Parse(strngayketthuc);

            ViewBag.listCDPS = new CanDoiPhatSinhService().getListCDPS(ngaybatdau, ngayketthuc);

            return View("index");
        }
	}
}